public class testemail1{
private final Contact con;
public testemail1(ApexPages.StandardController controller){
this.con=(Contact)controller.getRecord();
}
public void SendEmail(){Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setTargetObjectId(con.Id);
mail.setTemplateId('00X90000000f4Fd');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });}}